/*
 * @Description:
 * @Author: Haor
 * @Date: 2022-05-16 22:18:58
 * @LastEditTime: 2022-05-16 22:37:39
 * @LastEditors: Haor
 */
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'
import { PublicEntity } from '@entities/public.entity'

@Entity({
	name: 'sys_job',
	orderBy: { jobSort: 'ASC', name: 'DESC' }
})
export class JobEntity extends PublicEntity {
	@Column({ comment: '职位名称' })
	name: string

	@Column({ comment: '启用状态' })
	enabled: number

	@Column({ name: 'job_sort', comment: '排序' })
	jobSort: number

	@Column({ name: 'delete_status', select: false, comment: '删除状态：（0.未删除，1.已删除）' })
	deleteStatus: number

	@Column({ comment: '备注信息' })
	remark: string
}
